<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="UTF-8" %>
<%@ include file="/WEB-INF/view/common/includes.jsp" %>
<%@ include file="/WEB-INF/view/inc.jsp" %>
<!DOCTYPE html>
<html>
<head>
    <title></title>
</head>
<body>
<form method="post" class="form" id="form" action="<%=contextPath%>/sys/user/role/saveAndUpdate">
    <input type="hidden" name="id" value="${user.id}"/>
    <div style="padding-left:20px;padding-top: 20px">用户姓名：${user.realName}
    </div>
    <ul style="list-style-type:none;padding:20px;">
        <c:forEach var="item" items="${roleList}" varStatus="status">
            <div class="checkbox">
                <label style="text-align: left;">
                    <li style="padding:3px;">
                        <input type="checkbox" name="roleId" value="${item.id}" ${item.checked } />
                            ${item.roleName}
                    </li>
                </label>
            </div>
        </c:forEach>
    </ul>
</form>
</body>
</html>